package com.zoweunion.mechanic.controller.order;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.zoweunion.mechanic.controller.BaseController;
import com.zoweunion.mechanic.model.ResponseBean;
import com.zoweunion.mechanic.service.order.GGOrderService;
import com.zoweunion.mechanic.util.constants.Constants;
import com.zoweunion.mechanic.util.MyException;

/**
 * 高管工单控制层
 * @author Administrator
 */
@RestController
@RequestMapping("/ggOrder")
@SuppressWarnings("unchecked")
public class GGOrderController extends BaseController{

	@Autowired
	private GGOrderService ggOrderService;



	/**
	 * 高管今日看板
	 * @throws MyException 
	 */
	@PostMapping("/getKanBanInfo")
	public ResponseBean getKanBanInfo(@RequestBody String str,HttpServletRequest request) throws MyException{
		logBefore(logger, "高管今日看板");
		Map<String, Object> reqMap = JSONObject.parseObject(str, Map.class);
		Map<String, Object> resultMap=ggOrderService.getKanBanInfo(reqMap);
		return new ResponseBean(Constants.CODE_SUCCESS,"操作成功",resultMap);
	}










}
